<?php
    //连接数据库
    include("config/config.php");
    //获取前6本小说数据
    $novel=$dbh->query("SELECT * FROM novel WHERE name='".$_GET['name']."'")->fetchAll();
    if($novel){
        
        $author=$dbh->query("SELECT * FROM author WHERE name='".$novel[0]['author']."'")->fetchAll();
    }
    else{
        echo "小说不存在！";
        exit;
    }
?>

<!DOCTYPE html>
<html>
<head>
    
    <meta charset="UTF-8">
    <title><?php  echo '《'.$novel[0]['name'].'》_'.$novel[0]['author'].'著_'.$novel[0]['type'].''; ?></title>
    <link rel="stylesheet" type="text/css" href="statics/css/nav.css" />
    <link rel="stylesheet" type="text/css" href="statics/css/slider.css" />
    <link rel="stylesheet" type="text/css" href="statics/css/style.css">
    <link rel="stylesheet" type="text/css" href="css/style1.css"/>
    <link rel="stylesheet" type="text/css" href="../../statics/css/nav.css" />
    <link data-ignore="true" rel="stylesheet" href="css/module.e710a.css">
    <link data-ignore="true" rel="stylesheet" href="css/layout.5de0f.css">
    <link data-ignore="true" rel="stylesheet" href="css/book_details.0d238.css">
    <script src="statics/js/jquery.min.js"></script>
</head>
<body>
    <!-- 头部 -->
    <?php
            include("template/head.php");
        ?>
    <!-- 头部 -->
	<!--导航-->
        <?php
            include("template/nav.php");
        ?>
    <!--导航-->
    <span></span>
    <span></span>
</div>
    <div class="book-detail-wrap center990">
        <div class="book-information cf" data-l1="2">

    
    <div class="book-img">
        <a class="J-getJumpUrl" id="bookImg" href="#" data-eid="qd_G09" data-bid="1004608738" data-firstchapterjumpurl="//read.qidian.com/chapter/_AaqI-dPJJ4uTkiRw_sFYA2/eSlFKP1Chzg1"><img src="<?php  echo $novel[0]['img']; ?>"></a>
    </div>
    
    <div class="book-info ">
        <h1>
            
            <em><?php  echo $novel[0]['name']; ?></em>
            <span><a class="writer" href="#" target="_blank" data-eid="qd_G08"><?php  echo $novel[0]['author']; ?></a> 著</span>
            
        </h1>
        <p class="tag"><span class="blue"><?php  echo $novel[0]['status']; ?></span>
            
            <span class="blue">签约</span>
                 
            <a href="#" class="red" target="_blank" data-eid="qd_G10"><?php  echo $novel[0]['type']; ?></a>
            
            <a href="#" class="red" target="_blank" data-eid="qd_G11">东方玄幻</a>
            
        </p>
        
        <p class="intro"><?php  echo $novel[0]['content']; ?></p>
        <p><em><style>@font-face { font-family: uZwtHXFM; src: url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.eot?') format('eot'); src: url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.woff') format('woff'), url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.ttf') format('truetype'); } .uZwtHXFM { font-family: 'uZwtHXFM' !important;     display: initial !important; color: inherit !important; vertical-align: initial !important; }</style><span class="uZwtHXFM">&#100214;&#100213;&#100219;&#100208;&#100217;&#100218;</span></em><cite>万字</cite><i>|</i><em><style>@font-face { font-family: uZwtHXFM; src: url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.eot?') format('eot'); src: url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.woff') format('woff'), url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.ttf') format('truetype'); } .uZwtHXFM { font-family: 'uZwtHXFM' !important;     display: initial !important; color: inherit !important; vertical-align: initial !important; }</style><span class="uZwtHXFM">&#100218;&#100215;&#100219;&#100214;&#100208;&#100210;&#100216;</span></em><cite>万总人数点击<span>&#183;</span>周<style>@font-face { font-family: uZwtHXFM; src: url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.eot?') format('eot'); src: url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.woff') format('woff'), url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.ttf') format('truetype'); } .uZwtHXFM { font-family: 'uZwtHXFM' !important;     display: initial !important; color: inherit !important; vertical-align: initial !important; }</style><span class="uZwtHXFM">&#100213;&#100216;&#100208;&#100210;&#100212;</span>万</cite><i>|</i><em><style>@font-face { font-family: uZwtHXFM; src: url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.eot?') format('eot'); src: url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.woff') format('woff'), url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.ttf') format('truetype'); } .uZwtHXFM { font-family: 'uZwtHXFM' !important;     display: initial !important; color: inherit !important; vertical-align: initial !important; }</style><span class="uZwtHXFM">&#100216;&#100213;&#100216;&#100211;&#100208;&#100211;&#100213;</span></em><cite>万总推荐<span>&#183;</span>周<style>@font-face { font-family: uZwtHXFM; src: url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.eot?') format('eot'); src: url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.woff') format('woff'), url('https://qidian.gtimg.com/qd_anti_spider/uZwtHXFM.ttf') format('truetype'); } .uZwtHXFM { font-family: 'uZwtHXFM' !important;     display: initial !important; color: inherit !important; vertical-align: initial !important; }</style><span class="uZwtHXFM">&#100213;&#100208;&#100210;&#100213;</span>万</cite></p>
        
        <p><a class="red-btn J-getJumpUrl " href="/novel/m.php?file_name=<?php  echo $novel[0]['novel']; ?>&page=0">开始阅读</a>
            
        </p>
        
    </div>
 
    <div class="comment-wrap">
        <div id="commentWrap">
            <div class="load-score">
                <div class="la-ball-pulse">
                    <span></span>
                    <span></span>
                    <span></span>
                </div>
            </div>
            <div class="j_getData hidden">
                <h4 id="j_bookScore"><span><cite id="score1">0</cite><em>.</em></span><i id="score2">0</i></h4>
                <p id="j_userCount"><span></span>人评价</p>
            </div>
        </div>
    </div>

</div>

        
        <div class="content-nav-wrap cf" data-l1="3">
            <div class="nav-wrap fl">
                <ul>
                    <li class="act"><a class="lang" id="j-bookInfoPage" href="javascript:" data-eid="qd_G15">作品信息</a></li>
                    <li class="j_catalog_block"><a class="lang" href="/novel/list.php?file_name=<?php  echo $novel[0]['novel']; ?>&page=0" id="j_catalogPage" data-eid="qd_G16">目录<i><span id="J-catalogCount"></span></i></a></li>
                    
                    
                </ul>
            </div>
        </div>
        <div class="catalog-content-wrap hidden" id="j-catalogWrap" data-l1="14">
            <div class="go-top">
                <div class="go-top-wrap">
                    <a href="#" class="icon-go-top"><em class="iconfont" data-eid="qd_G72">&#xe66b;</em></a>
                </div>
            </div>
            
            <div class="loading">
                <div class="la-ball-pulse">
                    <span></span>
                    <span></span>
                    <span></span>
                </div>
            </div>
            
        </div>
        
        <div class="book-content-wrap cf">
            
            <div class="left-wrap fl">
                <div class="book-info-detail">
                    <cite class="icon-pin"></cite>
                    <div class="book-intro">
                        <p>
                            
                        <?php  echo $novel[0]['content']; ?>
                            
                        </p>
                    </div>
                    <div class="book-state" data-l1="4">
                        <ul>
                            
                            
                            
                                
                                <li class="honor" id="honor">
                                    <b>荣誉动态</b>
                                    <div class="detail">
                                    <strong>2018-11-01 获得了男频月票榜(2018年10月)第十名</strong>
                                    
                                    <p class="honor-icon cf">
                                        
                                        <img src="picture/wanzhongyixin.png">
                                        
                                        <img src="picture/yuepiaodiyi.png">
                                        
                                        <img src="picture/baimengzhengba.png">
                                        
                                        <img src="picture/gengshangyicenglou.png">
                                        
                                        <a class="blue collect" href="//book.qidian.com/honor/1004608738" target="_blank" data-eid="qd_G18">荣誉殿堂</a>
                                    </p>
                                    </div>
                                </li>
                                
                            
                                <li class="update">
                                    <b>最近更新</b>
                                    <div class="detail">
                                        <p class="cf">
                                            <a class="blue" href="//vipreader.qidian.com/chapter/1004608738/437475973" data-eid="qd_G19" data-cid="//vipreader.qidian.com/chapter/1004608738/437475973" title="第1321章 天上掉下个天帝" target="_blank">第1321章 天上掉下个天帝</a><i>&#183;</i><em class="time">12小时前</em>
                                        </p>
                                        <p class="tag-wrap mt10">
                                            
                                            
                                        </p>
                                    </div>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="fans-zone" data-l1="5">
                    <h3 class="lang">粉丝互动</h3>
                    <div class="fans-interact cf">
                        <dl>
                            <dd>
                                <h4 id="ticket-Tab">
                                    
                                    <a class="lang act" href="javascript:" data-eid="qd_G20">月票</a><em>|</em>
                                    
                                    <a class="lang " href="javascript:" data-eid="qd_G21">推荐票
                                    
                                    </a>
                                </h4>
                                <div class="action-wrap" id="ticket-wrap">
                                    
                                    <div class="ticket month-ticket">
                                        <p>本月票数</p>
                                        <p class="num"><i id="monthCount">9760</i></p>
                                        
                                        <p>排名14<i>&#183;</i>还差<em>
                                    1109
                                    
                                     </em>票追上前一名</p>
                                        
                                        <div class="icon-box month">
                                            <span></span>
                                            <b></b>
                                        </div>
                                        <a class="red-radius-btn" id="monthBtn" href="javascript:" data-showtype="1" data-eid="qd_G22"><em class="iconfont">&#xe63f;</em>投月票</a>
                                    </div>
                                    
                                    <div class="ticket rec-ticket hidden">
                                        <p>本周票数</p>
                                        <p class="num"><i id="recCount">65641</i></p>
                                        
                                        <p>排名19<i>&#183;</i>还差<em>
                                            10162
                                            
                                        </em>票追上前一名</p>
                                        
                                        <div class="icon-box rec">
                                            <span></span>
                                            <b></b>
                                        </div>
                                        <a class="red-radius-btn" id="recBtn" href="javascript:" data-showtype="2" data-eid="qd_G23"><em class="iconfont">&#xe63e;</em>投推荐票</a>
                                    </div>
                                </div>
                            </dd>
                            <dd class="line"></dd>
                            <dd>
                                <h4 class="lang"><span class="act">打赏</span></h4>
                                <div class="action-wrap">
                                    <div class="ticket">
                                        <p>本周打赏人数</p>
                                        <p class="num"><i class="rewardNum" id="rewardNum">77</i></p>
                                        
                                        <p>今日<em id="todayNum">7</em>人打赏</p>
                                        
                                        <div class="icon-box money">
                                            <span></span>
                                            <b></b>
                                        </div>
                                        <a class="red-radius-btn" id="rewardBtn" href="javascript:" data-showtype="3" data-eid="qd_G24"><em class="iconfont">&#xe635;</em>打赏作者</a>
                                    </div>
                                </div>
                            </dd>
                            <dd class="line"></dd>
                            <dd>
                                <h4 class="lang"><span>我的粉丝等级</span></h4>
                                
                                <div class="fans-rank login-out mb20 cf " id="noLogin" data-login="0">
                                    <div class="user-photo fl">
                                        <a href="//me.qidian.com" target="_blank">
                                            <img src="picture/default_user.38712.png">
                                        </a>
                                    </div>
                                    <div class="fans-info">
                                        <p><a class="blue" id="login-btn" href="javascript:" data-eid="qd_G28">登录</a>查看粉丝等级</p>
                                    </div>
                                </div>
                                <div class="fans-rank login-in mb20 cf hidden" id="loginIn" data-login="1">
                                    <div class="user-photo fl">
                                        <a href="//me.qidian.com" id="myUserIcon"  target="_blank">
                                            <img src="picture/default_user.38712.png">
                                            <span class="user-level" id="userLevel"></span>
                                        </a>
                                    </div>
                                    <div class="fans-info hidden" id="haveLv">
                                        <p>我的排名<b class="red">--</b>名</p>
                                        <p>还差<span id="Lnterval">--</span>粉丝值升级</p>
                                    </div>
                                    <div class="fans-info hidden" id="noLv">
                                        <p>暂无粉丝等级</p>
                                        <p id="levelUp">对本书消费可提升等级</p>
                                    </div>
                                </div>
                                <div class="fans-dynamic">
                                    <h4 class="lang"><span>本书粉丝动态</span></h4>
                                    
                                    <div class="fans-slide-wrap">
                                        <div class="scroll-div" id="scrollDiv">
                                            <ul class="fans-slide">
                                            
                                            <li data-rid="1" class="">
                                                <em class="rec"></em><a href="//me.qidian.com/friendIndex.aspx?id=202275180" target="_blank" data-eid="" title="龙皇LZL">龙皇LZL</a><span>投了</span>3张推荐票
                                            </li>
                                            
                                            <li data-rid="2" class="">
                                                <em class="rec"></em><a href="//me.qidian.com/friendIndex.aspx?id=220654453" target="_blank" data-eid="" title="书友160803181029922">书友160803181029922</a><span>投了</span>3张推荐票
                                            </li>
                                            
                                            <li data-rid="3" class="">
                                                <em class="rec"></em><a href="//me.qidian.com/friendIndex.aspx?id=217686047" target="_blank" data-eid="" title="醉饮无殇">醉饮无殇</a><span>投了</span>3张推荐票
                                            </li>
                                            
                                            <li data-rid="4" class="">
                                                <em class="rec"></em><a href="//me.qidian.com/friendIndex.aspx?id=115584738" target="_blank" data-eid="" title="岢惜吥媞伱">岢惜吥媞伱</a><span>投了</span>6张推荐票
                                            </li>
                                            
                                            
                                        </ul>
                                        </div>
                                    </div>
                                    
                                </div>
                            </dd>
                        </dl>
                    </div>
                </div>
                                
            </div>
            <div class="right-wrap fr">
                
                    <div class="author-state mb10">
                        <div class="author-info">
                            <div class="info-wrap nobt" data-l1="9">
                                <div class="author-photo" id="authorId" data-authorid="4362453">
                                    <a href="//my.qidian.com/author/4362453" target="_blank" data-eid="qd_G38">
                                        <img src="<?php  echo $author[0]['img']; ?>">
                                    </a>
                                    
                                    <span class="platina"><?php  echo $author[0]['level']; ?></span>
                                    
                                </div>
                                <p><a href="//my.qidian.com/author/4362453" target="_blank"><?php  echo $author[0]['name']; ?></a>
                                    
                                    <a class="god-light lv3" href="#" title="" target="_blank" data-eid="qd_G39"></a>
                                    
                                </p>
                                
                                <p class=""><?php  echo $author[0]['content']; ?>
                                    <cite class="iconfont blue j_infoUnfold" title="展开介绍"></cite>
                                </p>
                                
                            </div>
                            <div class="info-wrap" data-l1="9">
                                <ul class="work-state cf">
                                    <li>
                                        <span class="book"></span>
                                        <p>作品总数</p>
                                        <em><?php  echo $author[0]['novels']; ?></em>
                                    </li>
                                    <li>
                                        <span class="word"></span>
                                        <p>累计字数</p>
                                        <em><?php  echo $author[0]['words']; ?>万</em>
                                    </li>
                                    <li>
                                        <span class="coffee"></span>
                                        <p>创作天数</p>
                                        <em><?php  echo $author[0]['workdays']; ?></em>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

    <!-- 脚部 -->
        <?php
            include("template/foot.php");
        ?>
    <!-- 脚部 -->

</body>
</html>
